﻿namespace RedNoteModule
{
    //红点结构枚举
    public enum RedNoteType
    {
        Root,
        Branch1,
        Branch11,
        Branch12,
        Branch13,
        
        Branch2,
        Branch21,
        Branch211,
        
        Branch3,
    }
    
    //红点系统的结构初始化部分
    public partial class RedNoteMgr
    {
        protected void BuildRedNoteTree()
        {
            m_relationTree.CreateNote(RedNoteType.Root.ToString());
            
            m_relationTree.CreateNote(RedNoteType.Branch1.ToString());
            m_relationTree.CreateNote(RedNoteType.Branch2.ToString());
            m_relationTree.CreateNote(RedNoteType.Branch3.ToString());
            
            AddRelation(RedNoteType.Branch1, new RedNoteType[]
            {
                RedNoteType.Branch11,
                RedNoteType.Branch12,
                RedNoteType.Branch13,
            });
            
            AddRelation(RedNoteType.Branch2, RedNoteType.Branch21);
            AddRelation(RedNoteType.Branch21, RedNoteType.Branch211);
        }
    }
}